# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=microsploit
pkgver=9.441e132
pkgrel=1
pkgdesc='Fast and easy create backdoor office exploitation using module metasploit packet, Microsoft Office, Open Office, Macro attack, Buffer Overflow.'
arch=('x86_64')
groups=('blackarch' 'blackarch-backdoor')
url='https://github.com/Screetsec/Microsploit'
license=('GPL3')
makedepends=('git')
source=("$pkgname::git+https://github.com/Screetsec/Microsploit.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 Microsploit "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

